import React from 'react'
import { Icon } from 'gantd'
import { get } from 'lodash'

export const columns = [
  {
    title: tr('对象名称'),
    width: 150,
    fieldName: 'title'
  },
  {
    title: tr('业务对象类型'),
    fieldName: 'entryType',
    width: 150,
    render: (text: string) => text == "dynamic" ? tr("动态业务对象") : "",
    filterValueGetter: (params: any) => {
      let text = get(params, 'data.entryType')
      return text == "dynamic" ? tr("动态业务对象") : ""
    },
  },
  {
    title: tr('对象描述'),
    width: 200,
    fieldName: 'memo'
  }

]

export const searchFormschema = {
  title: {
    title: tr('对象名称'),
  }
}

export const searchUISchema = {
  "ui:col": 24
}
